package nl.saxion.dbi.model;

import lombok.Data;

@Data
public class KeyPair implements StringBasedPropertyAble
{

	private Key fromKey;

	private Key toKey;

	@Override
	public Object getProperty(String property)
	{
		switch (property)
		{
		case "from_key":
			return fromKey;
		case "to_key":
			return toKey;
		}
		throw new IllegalStateException("Property " + property + " is niet geldig voor Database");
	}

}
